//
//  AboutViewController.m
//  cm
//
//  Created by suyibaishan on 2017/11/4.
//  Copyright © 2017年 feihu. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createAboutView];
}

-(void)createAboutView
{
    self.titleLabel.text = @"关于我们";
    self.backButton.hidden = NO;
    
    UIImageView *logoImage = [[UIImageView alloc] initWithFrame:CGRectMake((kScreenWidth - 150)/2, kScreenWidth * 0.28f, 150, 80)];
    logoImage.image = [UIImage imageNamed:@"logo_login"];
//    logoImage.backgroundColor = [UIColor redColor];
    [self.view addSubview:logoImage];
    
    UILabel *detailLabel = [[UILabel alloc] init];
    detailLabel.font = [UIFont boldSystemFontOfSize:18];
    detailLabel.textAlignment = NSTextAlignmentCenter;
    detailLabel.text = @"车盟网络是一家新型的汽车电商平台";
    detailLabel.textColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1];
    [self.view addSubview:detailLabel];
    detailLabel.sd_layout
    .leftSpaceToView(self.view, 20)
    .topSpaceToView(logoImage, 35)
    .rightSpaceToView(self.view, 20)
    .autoHeightRatio(0);
    
    UILabel *contactLabel = [[UILabel alloc] init];
    contactLabel.font = [UIFont systemFontOfSize:13];
    //    companyLabel.numberOfLines = 2;
    contactLabel.textAlignment = NSTextAlignmentCenter;
    contactLabel.textColor = [UIColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1];
    contactLabel.text = @"Copyright©2017";
    [self.view addSubview:contactLabel];
    contactLabel.sd_layout
    .topSpaceToView(detailLabel, 35)
    .leftSpaceToView(self.view, 25)
    .widthIs(kScreenWidth - 50)
    .heightIs(20);
    
    UILabel *companyLabel = [[UILabel alloc] init];
    companyLabel.font = [UIFont systemFontOfSize:14];
    companyLabel.textAlignment = NSTextAlignmentCenter;
    companyLabel.textColor = [UIColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1];
    companyLabel.text = @"江苏车盟网络科技有限公司";
    [self.view addSubview:companyLabel];
    companyLabel.sd_layout
    .topSpaceToView(contactLabel, 0)
    .leftSpaceToView(self.view, 25)
    .widthIs(kScreenWidth - 50)
    .heightIs(20);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
